
public class Main {
        public static void main(String argv[])
        {
                MotorCautare a=new MotorCautare();
                a.adaugaRuta("Aradu Nou", "Timisoara", 10, false, true, false, false);
                a.adaugaRuta("Timisoara", "Recas", 2, false, true, false, false);
                a.adaugaRuta("Recas", "Topolovat", 3, false, true, false, false);
                a.adaugaRuta("Recas", "Jebel", 4, false, true, false, false);
                a.adaugaRuta("Jebel", "Deta", 5, false, true, false, false);
                a.adaugaRuta("Timisoara","Jebel",  6, false, true, false, false);
                a.adaugaRuta("Deta","Deta",  0, false, false, false, false);

                a.calculRuta("Aradu Nou", "Deta");
               
               
        }

}

